 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition   xmlns="http://www.w3.org/1999/xhtml"
			      xmlns:h="http://java.sun.com/jsf/html"
				  xmlns:p="http://primefaces.org/ui"
			      xmlns:f="http://java.sun.com/jsf/core"
			      xmlns:ui="http://java.sun.com/jsf/facelets"
			      template="layout/template.xhtml"
			      > 

<ui:define name="top">
         <ui:include src="Header.xhtml" />
</ui:define>


    <ui:define name="content">
    	  
		<h:panelGroup id="contentPanel">
		
				<h:form id="contentForm">
							
					    	<!-- <ui:include src="#{layoutBean.includedPage}"/>  -->
					    	<h:panelGroup rendered="#{layoutBean.includedPage == 'Default.xhtml'}">
					    			<ui:include src="Default.xhtml"/>
				    		</h:panelGroup>
					
				        	<h:panelGroup  rendered="#{layoutBean.includedPage == 'LoadedFiles.xhtml'}">
					    			<ui:include src="LoadedFiles.xhtml"/>
				    		</h:panelGroup>
				    		
				    		<h:panelGroup rendered="#{layoutBean.includedPage == 'CountryMapping.xhtml'}">
					    			<ui:include src="CountryMapping.xhtml"/>
				    		</h:panelGroup> 
				    		
				    		<h:panelGroup rendered="#{layoutBean.includedPage == 'unMappedItems.xhtml'}">
					    			<ui:include src="unMappedItems.xhtml"/>
				    		</h:panelGroup>  
				    		
				    		<h:panelGroup rendered="#{layoutBean.includedPage == 'ControlDistInfo.xhtml'}">
					    			<ui:include src="ControlDistInfo.xhtml"/>
				    		</h:panelGroup> 
				    		
				    		<h:panelGroup rendered="#{layoutBean.includedPage == 'StockUpdateStatus.xhtml'}">
					    			<ui:include src="StockUpdateStatus.xhtml"/>
				    		</h:panelGroup>   
				    		
				    		<h:panelGroup rendered="#{layoutBean.includedPage == 'MatchingReport.xhtml'}">
					    			<ui:include src="MatchingReport.xhtml"/>
				    		</h:panelGroup>   
				    		
				    		<h:panelGroup rendered="#{layoutBean.includedPage == 'StocksMatching.xhtml'}">
					    			<ui:include src="StocksMatching.xhtml"/>
				    		</h:panelGroup>  
				    		
				    		<h:panelGroup rendered="#{layoutBean.includedPage == 'OutletMasterInfo.xhtml'}">
					    			<ui:include src="OutletMasterInfo.xhtml"/>
				    		</h:panelGroup> 
				    		
				    		<h:panelGroup rendered="#{layoutBean.includedPage == 'SalesSummary.xhtml'}">
					    			<ui:include src="SalesSummary.xhtml"/>
				    		</h:panelGroup>
				    		
				    		<h:panelGroup rendered="#{layoutBean.includedPage == 'InvoiceDetails.xhtml'}">
					    			<ui:include src="InvoiceDetails.xhtml"/>
				    		</h:panelGroup> 
				    		
				    		<h:panelGroup rendered="#{layoutBean.includedPage == 'ReturnDetails.xhtml'}">
					    			<ui:include src="ReturnDetails.xhtml"/>
				    		</h:panelGroup> 
				    		
				    		<h:panelGroup rendered="#{layoutBean.includedPage == 'StockDetails.xhtml'}">
					    			<ui:include src="StockDetails.xhtml"/>
				    		</h:panelGroup>  
				    		
				    		<h:panelGroup rendered="#{layoutBean.includedPage == 'ChubInvoices.xhtml'}">
					    			<ui:include src="ChubInvoices.xhtml"/>
				    		</h:panelGroup> 
				    		
				    		<h:panelGroup rendered="#{layoutBean.includedPage == 'ChubStocks.xhtml'}">
					    			<ui:include src="ChubStocks.xhtml"/>
				    		</h:panelGroup> 
				    			
						  <p:idleMonitor timeout="7200000" onidle="idleDialog.show();"/>
						<p:dialog id="modalDialog" header="System is idle !" widgetVar="idleDialog" modal="false" height="100">  
						    <h:outputText value="Your session is closed.Do you want to open new session?" /><br />
						    <p:commandButton value="Yes" onclick="window.location.reload()"  style="margin-top:10px;margin-left:190px;"/>
						    <p:commandButton value="No" onclick="idleDialog.hide()"/>
						</p:dialog>  
				    			
				 </h:form>
		    		
		</h:panelGroup>
					
    </ui:define>

    <ui:define name="left">
    		<h:form>
			   <ui:include src="themeMenu.xhtml" />
			   </h:form>  
    </ui:define>      

           
</ui:composition>